---
layout: default
---

<h2>Pre-selected &amp; pre-disabled options</h2>
<p>Options one, three, and four have the <code class="prettyprint">selected="selected"</code> attribute and are checked by default.  Options five and six have the <code class="prettyprint">disabled="disabled"</code> attribute.
When the widget is initialized on the select, both attribute types are honored.</p>

<form>
   <p>
      <select name="example-presets" multiple="multiple" size="5">
      <option value="option1" selected="selected">Option 1</option>
      <option value="option2">Option 2</option>
      <option value="option3" selected="selected">Option 3</option>
      <option value="option4" selected="selected">Option 4</option>
      <option value="option5" disabled="disabled">Option 5</option>
      <option value="option6" disabled="disabled">Option 6</option>
      <option value="option7">Option 7</option>
      <option value="option8">Option 8</option>
      <option value="option9">Option 9</option>
      </select>
   </p>
</form>

<script type="text/javascript">$("select").multiselect();</script>
